/**
 * @author Rolan Liwanag
 */

package portfelo.dto;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

public class PhotoDto {

	private long photoId;
	private long accountId;
	private String fullyQualifiedName;
	private String location;
	private List<TagDto> photoTagList;
	private String title;
	private Date dateTaken;
	
	public long getPhotoId() {
		return photoId;
	}
	public void setPhotoId(long photoId) {
		this.photoId = photoId;
	}
	public long getAccountId() {
		return accountId;
	}
	public void setAccountId(long accountId) {
		this.accountId = accountId;
	}
	public String getFullyQualifiedName() {
		return fullyQualifiedName;
	}
	public void setFullyQualifiedName(String fullyQualifiedName) {
		this.fullyQualifiedName = fullyQualifiedName;
	}
	public List<TagDto> getPhotoTagList() {
		return photoTagList;
	}
	public void setPhotoTagList(List<TagDto> photoTagList) {
		this.photoTagList = photoTagList;
	}
	public String getLocation() {
		return location;
	}
	public void setLocation(String location) {
		this.location = location;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public Date getDateTaken() {
		return dateTaken;
	}
	public void setDateTaken(Date dateTaken) {
		this.dateTaken = dateTaken;
	}
	public String getDateTakenDisplayString() {
		String dateTakenDisplayString = "";
		if(this.dateTaken != null) {
			SimpleDateFormat sdf = new SimpleDateFormat( "yyyy-MM-dd" );
			dateTakenDisplayString = sdf.format(this.dateTaken).toString();
		}
		return dateTakenDisplayString;
	}
}
